BadRequestException
| Kind of class: | class |
|---|---|
| Inherits from: | Error |
| Author: | The gotoAndPlay() Team http://www.smartfoxserver.com http://www.gotoandplay.it |
| Classpath: | com.smartfoxserver.redbox.exceptions.BadRequestException |
| File last modified: | Tuesday, 24 June 2008, 16:41:21 |
A RedBox exception.
Summary
Constructor
- BadRequestException (message:String)
- Thrown when the wrong request type is passed to the com.smartfoxserver.redbox.AVChatManager.sendChatRequest method.
Constructor
BadRequestException
function BadRequestException (
message:String)
Thrown when the wrong request type is passed to the com.smartfoxserver.redbox.AVChatManager.sendChatRequest method.
The valid request types are: com.smartfoxserver.redbox.AVChatManager.REQ_TYPE_SEND, com.smartfoxserver.redbox.AVChatManager.REQ_TYPE_RECEIVE and com.smartfoxserver.redbox.AVChatManager.REQ_TYPE_SEND_RECEIVE.
The valid request types are: com.smartfoxserver.redbox.AVChatManager.REQ_TYPE_SEND, com.smartfoxserver.redbox.AVChatManager.REQ_TYPE_RECEIVE and com.smartfoxserver.redbox.AVChatManager.REQ_TYPE_SEND_RECEIVE.
Parameters:
message:
the error message.
Example:
- The following example shows how to handle the "BadRequestException" exception.
try { avChatMan.sendChatRequest("wrongType", 3, true, true) } catch (err:BadRequestException) { trace (err.message) }